class Solution:
    def splitWordsBySeparator(self, words: List[str], separator: str) -> List[str]:
        l = []
        for word in words:
            l += filter(len, word.split(separator))
        return l